import http from '@/common/interface'
//更新token
export function upToken(data){
	return http.request({
		url: '/groupCommon/upTokenZz_new',
		method: 'get',
		data
	})
}
//首页获取推荐咨询师
export function getZzCenterZxsListIndex(data){
	return http.request({
		url: '/zzCenter/getZzIndexWorkerList_noLj',
		method: 'get',
		data
	})
}
//更多咨询师列表
export function getZzCenterZxsList(data){
	return http.request({
		url: '/zzCenter/getZzCenterZxsList_noLj',
		method: 'get',
		data
	})
}
//获取测评列表
export function getZzIndexSliceCpList(data){
	return http.request({
		url: '/scaleOrder/getZzIndexSliceCpList_noLj',
		method: 'get',
		data
	})
}
//获取测评详情
export function getZzCpDet(data){
	return http.request({
		url: '/scaleOrder/getGroupZzXlcsOrderDetail_noLj',
		method: 'get',
		data
	})
}
//登录
export function zzLogin(data){
	return http.request({
		url: '/login/zzUserLogin',
		method: 'post',
		data
	})
}
//获取网格list
export function getVillageList(){
	return http.request({
		url:'/zzCenter/getSelfVillageList',
		method: 'get'
	})
}
//检测用户是否具有测评权限
export function checkZzCpAbility(data){
	return http.request({
		url:'/xlcs/checkZzCpAbility',
		method: 'post',
		data
	})
}

//检测用户是否具有干预复测权限
export function checkZzGyCpAbility(data){
	return http.request({
		url:'/xlcs/checkZzGyCpAbility',
		method: 'post',
		data
	})
}
//获取试题
export function getXlcsQueList(data){
	return http.request({
		url: '/xlcs/getXlcsQueList',
		method: 'get',
		data
	})
}
//心理测评最后提交动作
export function addZzXlcsSubmit(data,url){
	return http.request({
		url,
		method: 'post',
		data
	})
}
//生成心理基本报告
export function getXlcsReport(data,url){
	return http.request({
		url,
		method: 'get',
		data
	})
}
//获取心理测试答题记录
export function getXlcsLogRecordList(data,url){
	return http.request({
		url,
		method: 'get',
		data
	})
}